]> dgit.raspbian.org Git - gnome-shell.git/commit
network: Keep key focus in dialog when removing networks
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 2 Mar 2018 22:44:44 +0000 (23:44 +0100)
committerJonas Ådahl <jadahl@gmail.com>
Thu, 31 May 2018 11:42:14 +0000 (11:42 +0000)
commitb1dd746443a949aaa4a700fec3b2acfa7fb90e36
treec2aed99028c076cdd07705d7ef33a7e48d3078ce
parentc15e163eb1e6df8738121e8ca48bcfe38d920ac4
network: Keep key focus in dialog when removing networks

When the actor that has the key focus is destroyed, Clutter moves
the focus to the stage. In case the destroyed actor was inside a
ModalDialog, this breaks any keyboard interaction: keynav is broken
because the stage isn't in any focus chain, and access keys like
Escape because they are handled on the dialog's parent.

The only dialog that may destroy a child without recreating the dialog
buttons (and thus moving the key focus there) is the WirelessDialog,
fix it by keeping the key focus within the dialog when removing networks
from the list.

https://gitlab.gnome.org/GNOME/gnome-shell/issues/76
js/ui/status/network.js